package com.huatai.exchange.integration.webside.impl;

import com.faneui.common.exception.BusinessException;
import com.faneui.integration.http.HttpClientUtils;
import com.huatai.exchange.integration.webside.AbstractWebsideService;
import com.huatai.exchange.integration.webside.service.LiquidateFlowQueryService;
import com.huatai.webside.facade.bean.QueryFlowProcessResp;
import org.springframework.stereotype.Service;

@Service
public class LiquidateFlowQueryServiceImpl extends AbstractWebsideService implements LiquidateFlowQueryService {

    @Override
    public boolean isFinishO32Flow(String flowCode) throws BusinessException {
        String url = baseUrl + "/flowquery/o32/"+ flowCode;
        return HttpClientUtils.get(url, QueryFlowProcessResp.class).getFinish();
    }

    @Override
    public boolean isFinishTaFlow(String flowCode) throws BusinessException {
        // TODO
        return false;
    }

    @Override
    public boolean isFinishDs1Flow(String flowCode) throws BusinessException {
        // TODO
        return false;
    }

    @Override
    public boolean isFinishDs2Flow(String flowCode) throws BusinessException {
        // TODO
        return false;
    }
}
